package com.FSS.test;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Noscript{
	public static void main(String[] args) throws IOException{
		for(int i=0;i<args.length;i++){
		File f = new File(args[i]);
		BufferedReader in
		   = new BufferedReader(new FileReader(f));
		String temp=null;
		String html = "";
		while((temp=in.readLine())!=null){
			html+=temp;
		}
		in.close();
		html.replaceAll("<script[^>]*?>.*?</script>", "");
		BufferedWriter out = new BufferedWriter(new FileWriter("e:\\"+i+".x.html"));
		out.write(html);
		}
	}
}
